﻿* Encoding: UTF-8.
1. Distributions of the difference scores in the mediated and baseline datasets (performed for Figure 1)

Difference data - taken from mediated and baseline 
  
  GRAPH
  /HISTOGRAM(NORMAL)=Difference
  /PANEL ROWVAR=Dataset ROWOP=CROSS.


2. Wilcoxon Signed Rank tests in the mediated and baseline datasets

Mediated data:

*Nonparametric Tests: Related Samples.
NPTESTS
  /RELATED TEST(Density_before Density_after)
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05  CILEVEL=95.

Baseline data:

*Nonparametric Tests: Related Samples.
NPTESTS
  /RELATED TEST(density_before density_after)
  /MISSING SCOPE=ANALYSIS USERMISSING=EXCLUDE
  /CRITERIA ALPHA=0.05  CILEVEL=95.


3. Repeated measures analysis - Mediated data (performed for Table 2)

GLM Density_before Density_after BY MediatorRank WITH Duration PolityIV
  /WSFACTOR=MEDIATION 2 Polynomial
  /METHOD=SSTYPE(3)
  /CRITERIA=ALPHA(.05)
  /WSDESIGN=MEDIATION
  /DESIGN=Duration PolityIV MediatorRank.

Change in conflict density by duration - Mediated data (performed for Figure 2)


* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=Duration DensityChange MISSING=LISTWISE
    REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE
  /FITLINE TOTAL=YES.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: Duration=col(source(s), name("Duration"))
  DATA: DensityChange=col(source(s), name("DensityChange"))
  GUIDE: axis(dim(1), label("Duration"))
  GUIDE: axis(dim(2), label("DensityChange"))
  GUIDE: text.title(label("Simple Scatter with Fit Line of DensityChange by Duration"))
  ELEMENT: point(position(Duration*DensityChange))
END GPL.




